<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>盛世机电</title>
    <link href="/common/css/common-ui.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/css/backstageManage/projectInfo.css" />
    <script>
        if(localStorage.getItem("token")==null){
            window.history.replaceState(null, "", '/login.html');
            location.reload()
        }
    </script>
</head>

<body>
    <div class="page-container">
        <div class="side-menu"></div>
        <div class="main-container">
            <div class="header-content">
                <i class="aidicon aidicon-backburger"></i>
                <span class="title-text"></span>
                <div class="user-info pull-right">
                    <img src="/images/backstageManage/img_01.png">
                    <span class="username"></span>
                </div>
            </div>
            <div class="main-content">
                <div class="main-wrapper">
                    <div class="standard-table-btn-con">
                        <button type="button" class="btn btn-primary m-right" id="add">新增</button>
                        <!-- <button type="button" class="btn btn-default m-right" id="delete_all"
                            disabled="disabled">批量删除</button> -->

                        <div class="right-operate-con">
                            <div class="searchbox m-right">
                                <span class="aidicon aidicon-magnify"></span>
                                <input id="search_val" placeholder="请输入搜索内容" />
                                <span class="aidicon aidicon-close"></span>
                            </div>
                        </div>
                    </div>
                    <div class="standard-table-body-con">
                        <table id="standard_table" class="display" cellspacing="0" width="100%"
                            style="table-layout: fixed;">

                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script id="addFormTpl" type="text/html">
        <div class="form-default">
            <form class="form-validate-dom addForm">
                {{if data.id}}
                <input type="hidden" id="id" value="{{data.id}}"/>
                {{/if}}
                <label for="gateId"><i>*</i>保养类别名称</label>
                <div class="form-group">
                    <input type="text" class="form-control" id="name" name="name" placeholder="请输入" required autocomplete="off" value="{{data.name}}">
                </div>  
                <label for="desc"><i>*</i>保养内容</label>
                <div class="form-group">
                    <textarea class="form-control" rows="3" id="content" name="content" placeholder="请输入" required>{{data.content}}</textarea>  
                </div>
            </form> 
        </div>
    </script>
    <script id="relateTpl" type="text/html">
        <div id="treeDemo-01" class="ztree"></div>
    </script>
    <script src="/common/js/lib/require/require.min.js"></script>
    <script>
        require(["/js/require.config.js"], function () {
            require(["/js/backstageManage/menu.js"], function () {
                require(["/js/backstageManage/maintainInfo.js"], function (app) {
                    app.init();
                });
            });
        });
    </script>
</body>

</html>